﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


namespace Panty.QF
{
    public static class ComponentExtrensions
    {

        /// <summary>
        /// 判断组件是否被销毁
        /// </summary>
        /// <param name="component"></param>
        /// <returns></returns>
        public static bool IsDestroy(this Component component)
        {
            if (component == null || component.ToString() == "null")
                return true;

            return false;
        }

    }

}

